// components/pop-up/index.js
Component({
    options: {
        multipleSlots: true,
    },

    /**
     * 组件的属性列表
     */
    properties: {
        visible: {
            type: Boolean,
            value: false,
        },
    },

    /**
     * 组件的初始数据
     */
    data: {},

    ready() {
        this.triggerEvent("ready");
    },

    /**
     * 组件的方法列表
     */
    methods: {
        popPreventTouchmove() {
            console.log("popPreventTouchmove");
        },
        popPreventTouchmove1() {
            console.log("popPreventTouchmove1");
        },
        popPreventTouchmove2() {
            console.log("popPreventTouchmove2");
        },

        close() {
            this.triggerEvent("close");
        },

        handleClickMask(e) {
            console.log(e.target.dataset);
            if (e.target.dataset.type !== 'unclose') this.close()
        },
    },
});